<include file="Public:header" />
<script type="text/javascript" src="__PUBLIC__/admin/js/engine.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/js/jq_validate.js"></script>
<script type="text/javascript">
$(function(){	
    $('#title').validate('required','请填写广告位置名称').validate();
    $('#width').validate('required','请填写广告位置宽度').validate();
    $('#height').validate('required','请填写广告位置高度').validate();
    $('#dataForm').submitValidate();
});
</script>
<body class="mainBackground">
	<include file="Public:menu" />
	<div class="main" id="mainContainer">
        <!--发布-->
    	<div class="content_box">
        	<div class="content_box_t">
            	<h3 class="fl">
               	<neq name="data[id]" value=''>
                编辑<else/>发布</neq>广告位置
                </h3>
            </div>
            <div class="content_box_c">
            	<form action="__ACTION__" method="post" id="dataForm" name="dataForm" enctype="multipart/form-data">
                    <div class="field">
                        <label>广告位置名称</label>
                        <input class="text_input medium_input" type="text" name="title" id="title" value="{$data.title}" />
                        <span class="input_notification  png_bg" id="titleTip"></span>
                        <small>必填</small>
                    </div>
                    <div class="field pt15">
                        <label>宽度</label>
                        <input class="text_input w5_input mr5" type="text" name="width" id="width" value="{$data.width}" />px
                        <span class="input_notification  png_bg" id="widthTip"></span>
                        <small>必填</small>
                    </div>
                    <div class="field pt15">
                        <label>高度</label>
                        <input class="text_input w5_input mr5" type="text" name="height" id="height" value="{$data.height}" />px
                        <span class="input_notification  png_bg" id="heightTip"></span>
                        <small>必填</small>
                    </div>
                    <div class="field pt15">
                        <label>其他说明</label>
                        <textarea class="text_input" name="content" id="content" cols="79" rows="5">{$data.content}</textarea>
                    </div>                                                            
                	<div class="field pt15">
						<label>是否开放</label>
						<input type="checkbox" name="status"  value="1" <eq name="data.status" value="1"> checked</eq>/>是 
					</div>                                                                                                  
                    <div class="field pt15 clearfix">
                    	<input type="hidden" name="id" value="{$data.id}"/>   
                    	<input type="submit" value="提交" class="public_button fr" />
                    </div>                                                                               
                </form>
            </div>
        </div>            
        <!--发布结束-->
    </div>
</body>
</html>
